package at.guigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

// Restful风格的请求参数
@Controller
@RequestMapping("/user2")
public class UserControllerTwo {
    @ResponseBody
    @RequestMapping("/quickk1/{name}")
    public void save1(@PathVariable(value = "name") String userName) {
        System.out.println(userName);
    }
}